﻿using System;
using static CyberU;
using static CyberU.UI;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;

public interface ISelectListItem
{
     int dataIndex { get; set; }
     int childIndex { get; set; }
     // LoopScrollSelector parent { get; set; }
     // string direction
     // {
     //      get
     //      {
     //           return parent.direction;
     //      }
     // }
     string direction { get; set; }

     float main
     {
          get
          {
               if (direction=="horizontal")
               {
                    return width;
               }
               return height;
          }
          set
          {
               if (direction == "horizontal")
               {
                    width = value;
                    return;
               }
               height = value;
          }
     }

     float height { get; set; }
     float width { get; set; }
}